package com.etpjava.dao;

import java.util.Date;
import java.util.HashMap;
import java.util.List;

import com.etpjava.model.Train;
import com.etpjava.util.Page;



public interface TrainDao{
    public void delete(Train train);
	public void save(Train train);
	public void update(Train train);
	public Train findById(int id);
	public List<Train> findByTraining(String content);
	public List<Train> findByIds(Integer id); 
    void findAll(Page pagelist);
    void findByTitle(Page pagelist, String title);
    void findFuzzyForPage(Page pagelist, HashMap<String, String> sw);
    void findByIdRange(HashMap<String,String> sw,Page pagelist);
//	public List<Train> findByTitle(String title); 
//	List<Train> findByfuzzy(String name,String address,String content); 
//	List<Train> findId(Integer id1,Integer id2); 
//	Page findByTitle(String title, int pagenum);
//	Page findByIdRange(Integer id1, Integer id2, int pagenum);
//	Page findFuzzyForPage(HashMap<String, String> sw, int pagenum);
//	public List<Train> findAll();
//	Page findAll(int pagenum);
}
